package com.gitee.wsl.ext.reflect

import kotlin.reflect.KClassifier
import kotlin.reflect.KType
import kotlin.reflect.KTypeProjection
import kotlin.reflect.full.withNullability

//actual fun KType.withNullability(nullable: Boolean): KType {
//    return this.withNullability(nullable)
//}


//internal actual class KTypeImpl
//actual constructor(
//    actual override val classifier: KClassifier?,
//    actual override val arguments: List<KTypeProjection>,
//    actual override val isMarkedNullable: Boolean,
//    actual override val annotations: List<Annotation>,
//) : KType, EitherNetKType {
//    private val impl = EitherNetKTypeImpl(classifier, arguments, isMarkedNullable, annotations)
//
//    override fun equals(other: Any?) = impl == other
//
//    override fun hashCode() = impl.hashCode()
//
//    override fun toString() = impl.toString()
//}
